/*
  Created by 1271107612@qq.com.
  User: DELL
  Date: 2022/4/19
  Time: 15:30
  DESCRIPTION: 
*/
package com.zzy.face.service.impl;

import com.zzy.face.dao.RLSchoolDao;
import com.zzy.face.model.RLSchool;
import com.zzy.face.service.RLSchoolService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RLSchoolServiceImpl implements RLSchoolService {
    final RLSchoolDao rlSchoolDao;

    public RLSchoolServiceImpl(RLSchoolDao rlSchoolDao) {
        this.rlSchoolDao = rlSchoolDao;
    }

    @Override
    public void save(RLSchool rlSchool) {
        rlSchoolDao.save(rlSchool);
    }

    @Override
    public List<RLSchool> findByStudent(Long student_id) {
        return rlSchoolDao.findRLSchoolByStudent(student_id);
    }

    @Override
    public List<RLSchool> findRByStudent(Long student_id) {
        return rlSchoolDao.findRSchoolByStudent(student_id);
    }

    @Override
    public List<RLSchool> findLByStudent(Long student_id) {
        return rlSchoolDao.findLSchoolByStudent(student_id);
    }

    @Override
    public List<RLSchool> findByTeacher(Long teacher_id) {
        return rlSchoolDao.findRLSchoolByTeacher(teacher_id);
    }

    @Override
    public List<RLSchool> findRByTeacher(Long teacher_id) {
        return rlSchoolDao.findRSchoolByTeacher(teacher_id);
    }

    @Override
    public List<RLSchool> findLByTeacher(Long teacher_id) {
        return rlSchoolDao.findLSchoolByTeacher(teacher_id);
    }

    @Override
    public RLSchool findById(Long id) {
        return rlSchoolDao.getOne(id);
    }

    @Override
    public void delete(RLSchool rlSchool) {
        rlSchoolDao.delete(rlSchool);
    }
}
